import { Component } from 'angular2/core';
import { RouteConfig, RouterOutlet } from 'angular2/router';
import { HeroListComponent } from './list.component';
import { HeroDetailComponent } from './detail.component';

@Component({
    template: `
        <router-outlet></router-outlet>
    `,
    directives: [RouterOutlet]
})
@RouteConfig([
    {
        path: '/',
        name: 'HeroList',
        component: HeroListComponent,
        useAsDefault: true
    },
    {
        path: '/:id',
        name: 'HeroDetail',
        component: HeroDetailComponent
    }
])
export class HeroComponent {
    
}